package be.fomp.jeve.application.data.standard.corporationsheet;

import org.jdom.Element;
import be.fomp.jeve.application.data.standard.CorporationSheet.Logo;

public final class LogoImpl implements Logo {
	static final long serialVersionUID = 1L;
	
	private Integer graphicID;

	private Integer shape1;
	private Integer shape2;
	private Integer shape3;

	private Integer color1;
	private Integer color2;
	private Integer color3;

	LogoImpl(Element logoElement) {
		this.graphicID = Integer.parseInt(logoElement.getChildText("graphicID"));

		this.shape1 = Integer.parseInt(logoElement.getChildText("shape1"));
		this.shape2 = Integer.parseInt(logoElement.getChildText("shape2"));
		this.shape2 = Integer.parseInt(logoElement.getChildText("shape3"));

		this.color1 = Integer.parseInt(logoElement.getChildText("color1"));
		this.color2 = Integer.parseInt(logoElement.getChildText("color2"));
		this.color3 = Integer.parseInt(logoElement.getChildText("color3"));
	}

	public Integer getGraphicID() {	return graphicID;}

	public Integer getShape1() {return this.shape1;}
	public Integer getShape2() {return this.shape2;}
	public Integer getShape3() {return this.shape3;}

	public Integer getColor1() {return this.color1;}
	public Integer getColor2() {return this.color2;}
	public Integer getColor3() {return this.color3;}
}

